#ifndef PRELOADERS_H_INCLUDED
#define PRELOADERS_H_INCLUDED

#include <lua.h>

int luaopen_lfs(lua_State *L);
int luaopen_lpeg(lua_State *L);
int luaopen_video(lua_State *L);
int luaopen_joy(lua_State *L);
int luaopen_audio(lua_State *L);
int luaopen_struct(lua_State *L);
int luaopen_audio_retro(lua_State *L);
int luaopen_time(lua_State *L);
int luaopen_image(lua_State *L);
int luaopen_input(lua_State *L);
int luaopen_window(lua_State *L);
int luaopen_mouse(lua_State *L);
int luaopen_font(lua_State *L);
int luaopen_key(lua_State *L);
int luaopen_draw(lua_State *L);

static const luaL_Reg preloaders[] = {
    {"lfs", luaopen_lfs},
    {"lpeg", luaopen_lpeg},
    {"video", luaopen_video},
    {"audio", luaopen_audio},
    {"audio.retro", luaopen_audio_retro},
    {"joy", luaopen_joy},
    {"struct", luaopen_struct},
    {"time", luaopen_time},
    {"image", luaopen_image},
    {"input", luaopen_input},
    {"window", luaopen_window},
    {"mouse", luaopen_mouse},
    {"font", luaopen_font},
    {"key", luaopen_key},
    {"draw", luaopen_draw},
    {NULL,NULL}
};

void mole_addpreloaders(lua_State *L);

#endif // PRELOADERS_H_INCLUDED
